package com.liuyang.demo.number;

public class Devide {
    public static void main(String[] args) {
        Long max=6L;
        Long serving=1L;
        double f=max.equals(0L)?0:(serving*100.0/max);
        System.out.println(f);
        System.out.println(Math.round (f));
        System.out.println(Long.valueOf(Math.round (f)));
    }
}
